package my.eightZOne;

import java.io.FileNotFoundException;

import my.Views.treasureView;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;

public class treasureActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//强制设置竖屏
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		// 设置显示view实例
		// 隐去标题栏
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		// 隐去状态栏
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		// 设置显示view实例
		try {
			setContentView(new treasureView(this, null));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	protected void onActivityResult(int requestCode, int resultCode,
			Intent intent) {
		super.onActivityResult(requestCode, resultCode, intent);
		//startActivityForResult(intent,REQUEST_CODE_TAKE_PICTURE);
		if (resultCode == RESULT_OK) {
			//在此处获得照过相的位图且显示出来
			Toast.makeText(this, "看你你的样子！", Toast.LENGTH_SHORT).show();
			//my.Views.treasureView myview = (my.Views.treasureView)this.fin
		}
	}
}